package com.cqupt.mapper;

import com.cqupt.pojo.Role;
import com.cqupt.pojo.RoleExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    /**
     *
     * @param example
     * @return
     */
    long countByExample(RoleExample example);

    /**
     *
     * @param example
     * @return
     */
    int deleteByExample(RoleExample example);

    /**
     *
     * @param roleName
     * @return
     */
    int deleteByPrimaryKey(String roleName);

    /**
     *
     * @param record
     * @return
     */
    int insert(Role record);

    /**
     *
     * @param record
     * @return
     */
    int insertSelective(Role record);

    /**
     *
     * @param example
     * @return
     */
    List<Role> selectByExampleWithBLOBs(RoleExample example);

    /**
     *
     * @param example
     * @return
     */
    List<Role> selectByExample(RoleExample example);

    /**
     *
     * @param roleName
     * @return
     */
    Role selectByPrimaryKey(String roleName);

    /**
     *
     * @param record
     * @param example
     * @return
     */
    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    /**
     *
     * @param record
     * @param example
     * @return
     */
    int updateByExampleWithBLOBs(@Param("record") Role record, @Param("example") RoleExample example);

    /**
     *
     * @param record
     * @param example
     * @return
     */
    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    /**
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Role record);

    /**
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeyWithBLOBs(Role record);
}